package com.example.readwrite.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@TableName("t_order_item")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderItem {
    @TableId(type = IdType.ASSIGN_ID)
    private Long orderItemId;
    private Long orderId;
    private Long userId;
    private Long merchantId;
    private BigDecimal amount;
}
